package com.liushuang.dao;

import com.liushuang.po.Comment;
import com.liushuang.po.User;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author liushuang
 * @create 2020-10-03-19:32
 * description:
 */
public interface CommentRepository extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
